﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/AdminMaster.Master" AutoEventWireup="true" CodeBehind="RelationCheckArea.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.RelationQuery.RelationCheckArea" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <div id="tabnav">
        <ul>
            <asp:Panel ID="Panel1" runat="server">
                <li class="active"><a href="RelationCheckArea.aspx">中心配送区域审核</a></li>
            </asp:Panel>
            <asp:Panel ID="Panel2" runat="server">
            <li class="active"><a href="RelationCheckAreaByMS.aspx">盟市配送区域审核</a></li>
            </asp:Panel>
        </ul>
        <%--<div id="note">
            配送区域选择</div>
        <div id="note2">
        </div>--%>
    </div>
    <br />
    <table class="table">
        <tr>
            <td align="right">企业名称：</td>
            <td align="left">
                <asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox></td>
            <td align="right">审核状态：</td>
            <td align="left">
                <asp:DropDownList ID="ddlStatus" runat="server">
                    <asp:ListItem Value="">全部</asp:ListItem>
                    <asp:ListItem Value="0">未审核</asp:ListItem>
                    <asp:ListItem Value="2">未通过</asp:ListItem>
                    <asp:ListItem Value="1">已通过</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td align="left">
                <asp:Button ID="btnInquery" runat="server" Text="查 询" CssClass="btn" 
                    onclick="btnInquery_Click" /></td>
        </tr>
    </table>
    
    <asp:GridView ID="gvwArea" CssClass="mainlist" runat="server" AutoGenerateColumns="False" DataKeyNames="companyPS_Id">
        <Columns>
           
            <asp:BoundField DataField="CompanyName" HeaderText="企业名称" 
                HeaderStyle-Width="20%" >
           
<HeaderStyle Width="20%"></HeaderStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="已通过区域">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# getAreaids(Eval("companyps_id").ToString(),1) %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CompanyName") %>'></asp:TextBox>
                </EditItemTemplate>
                <HeaderStyle Width="30%" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="未通过区域">
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# getAreaids(Eval("companyps_id").ToString(),2) %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("CompanyName") %>'></asp:TextBox>
                </EditItemTemplate>
                <HeaderStyle Width="30%" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="未审核区域">
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" Text='<%# getAreaids(Eval("companyps_id").ToString(),0) %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("CompanyName") %>'></asp:TextBox>
                </EditItemTemplate>
                <HeaderStyle Width="30%" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                <hz:HzLinkButton ID="HzButton1" runat="server" OnClientClick='<%# GetURLScript("checkPSAreaByZbzx.aspx?psid="+Eval("CompanyPS_Id")) %>'
                        CausesValidation="false" Text='审核' OperateType="审核" />
             <%--       <a href="checkPSAreaByZbzx.aspx?psid=<%#Eval("CompanyPS_Id") %>">审核</a>--%>
                </ItemTemplate>
            </asp:TemplateField>
            
        </Columns>
    </asp:GridView>
    <asp:GridView ID="gvwAreas" CssClass="mainlist" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField DataField="CompanyPS_ID" HeaderText="配送企业编号" />
            <asp:BoundField DataField="CompanyName" HeaderText="配送企业名称" />
            <asp:BoundField DataField="contactperson" HeaderText="企业联系人" />
            <asp:BoundField DataField="cellno" HeaderText="企业联系电话" />
            <asp:BoundField DataField="address" HeaderText="注册地址" />
            <asp:BoundField DataField="areaName" HeaderText="申请配送区域" />
            <asp:BoundField DataField="checkByZbzxdc" HeaderText="审核状态" />
            <asp:BoundField DataField="Checkuserbyzbzx" HeaderText="审核人" />
            <asp:BoundField DataField="checktimebyzbzx" HeaderText="审核时间" />
            <asp:BoundField DataField="reasonbyzbzx" HeaderText="审核不通过原因" />
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
            </webdiyer:AspNetPager>
    </div>    
    <div class="listctrl">
<hz:HzButton ID="btnExport" runat="server" Text="导出Excel" CssClass="btn" ToolTip="导出Excel"
                        OnClick="btnExport_Click" /></div>
    <div class="listip">
        <ul>
            <li>提示:已提交各地市配送的企业</li>
        </ul>
    </div>
    <%--<div class="listctrl">
        <asp:Button ID="btnCheck" runat="server" Text="审核通过"  CssClass="btn" 
            onclick="btnCheck_Click" />
    &nbsp;<asp:Button ID="btnCheckNo" runat="server" Text="审核不通过" CssClass="btn" 
            onclick="btnCheckNo_Click" />
    </div>--%>
</asp:Content>
